package com.ebase.core.page;

import java.util.List;

public class Page<T> extends Pageable {
    
    protected List<T> items;

    protected int totalItems;

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public int getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(int totalItems) {
        this.totalItems = totalItems;
    }

    public int getTotalPages() {
        return totalItems / pageSize + (totalItems % pageSize == 0 ? 0 : 1);
    }
    
    public void setTotalPages(int totalPages){
        
    }
}
